home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan 2
/
Opus 5 - Magellan 2.iso
/
DOpus_SDK_5.5
/
include
/
dopus
/
timer.h
< prev
Wrap
C/C++ Source or Header
|
1996-09-01
|
698b
|
27 lines
#ifndef _DOPUS_TIMER
#define _DOPUS_TIMER
/*****************************************************************************
Timer
*****************************************************************************/
typedef struct TimerHandle
{
struct MsgPort *port; // Port to wait on
struct timerequest req; // Timer request
struct MsgPort *my_port; // Supplied port
short active; // Indicates active request
} TimerHandle;
TimerHandle *AllocTimer(ULONG,struct MsgPort *);
BOOL CheckTimer(TimerHandle *);
void FreeTimer(TimerHandle *);
struct Library *GetTimerBase(void);
void StartTimer(TimerHandle *,ULONG,ULONG);
void StopTimer(TimerHandle *);
BOOL TimerActive(TimerHandle *);
#endif